package com.example.licslan.dao;

import com.example.licslan.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author weilin
 */
@Mapper
@Repository
public interface UserDao {


    /**
     * 创建用户
     * @param user
     * */
    void createUser(User user);
    /**
     * 查询用户列表
     * @return
     */
    List<User> findAllUser();

    /**
     * 批量创建用户
     * @param userList
     * @return
     * */
    Long creatUserList(@Param("userList") List<User> userList);
}
